package com.caimiao.miao.page.ticket;

import android.content.Context;
import android.content.Intent;

import com.caimiao.miao.bean.TicketOut;
import com.caimiao.miao.interfaces.IBaseModel;
import com.caimiao.miao.interfaces.IBasePresenter;
import com.caimiao.miao.interfaces.IBaseActView;

public interface ITicketContact {
    interface View extends IBaseActView<Presenter> {
        void init(TicketOut ticket);

        void setTicketNum(String num);

        void setTicketState(int state);
    }

    interface Presenter extends IBasePresenter {
        void setCloseTicket(Context context, int state);

        void restartTakeTicket();

        void setContinue(int state);

        void onNewIntent(Intent intent);
    }

    interface Model extends IBaseModel {
        void setTicket(TicketOut ticket);

        void setRemainCount(int remain);

        int getRemainCount();

        TicketOut getNextTicket();

        int getMaxNum();

        void updateBeforeClose(Context context, int state);

        void addTicket(TicketOut ticket);
    }
}
